package com.supreme.studyserver.controller;

import com.supreme.commonboot.utils.AjaxResp;
import com.supreme.studyserver.entity.School;
import com.supreme.studyserver.service.ReflectService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "reflect")
public class ReflectController {

    @Resource
    private ReflectService reflectService;

    @GetMapping(value = "schoolAspect")
    public AjaxResp schoolAspect() {
        final School school = reflectService.demoTwo();
        return AjaxResp.instance(school);
    }
}
